#include <Windows.h>
#include "MyGraphics.h"
#include <GdiPlus.h>

using namespace Gdiplus;
#pragma comment (lib, "gdiplus.lib")	// Phai co dong nay moi su dung duoc cac ham cua GdiPlus.

class MyGDIPlus: public MyGraphics
{
	Graphics *g;
	ULONG_PTR gpToken;
public:
	MyGDIPlus();
	~MyGDIPlus();

	// Ham ve duong thang
	void DrawLine(char RGBStroke[], int strokeWidth, int x1, int y1, int x2, int y2);

	// Ham ve Elipse
	void DrawEllipse(char RGBStroke[], int strokeWidth, int x, int y, int width, int height);

	// Ham ve hinh chu nhat
	void DrawRectangle(char RGBStroke[], int strokeWidth, int x, int y, int width, int height);

	// Ham ve Text
	void DrawText2(char RGBStroke[], char* text, int size, int x, int y);

	// Ham ve mui ten
	void DrawArrow(char RGBStroke[], int strokeWidth, int x1, int y1, int x2, int y2);

	// Ham to Elipse
	void FillEllipse(char RGBStroke[], int x, int y, int width, int height);

	// Ham to hinh chu nhat
	void FillRectangle(char RGBStroke[], int x, int y, int width, int height);

	// Ham to hinh da giac
	void FillPolygon(char RGBStroke[], MyPoint points[], int numPoints);

	// Lay ten thu vien do hoa
	string GetName();
};